<?php


namespace app\admin\validate;


use think\Validate;

class Config extends Validate
{
    protected $rule = [
        'code' => 'require',
        'value'  =>  'require',
        'remark' => 'require',
        'group' => 'require',
        'type' => 'require'
    ];



    protected $field = [
        'code' => '配置key',
        'value'  =>  '配置value',
        'remark' => '备注',
        'group' => '配置分组',
        'type' => '输入框类型'
    ];

    protected $message = [

    ];

    protected $scene = [
        'add' => ['group','type','code','value','remark'],
        'edit' => ['group','type','code','value','remark']
    ];

}